package com.paw.arg.resolver.controller;

import com.paw.arg.resolver.service.TrafficService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lvzihai
 * @date 2021/6/25
 **/
@RestController
public class ArgResolverController {

  @Autowired
  private TrafficService trafficService;

  @GetMapping("/traffic")
  public Object traffic(String type){

    return trafficService.traffic(type,"argument");
  }


}
